package com.demo.mappers;
import org.apache.ibatis.annotations.Param;



/**
 * @Description:分类:mapper
 * @Date:2025-03-02
 * @author：author
*/
public interface CategoryMapper<T,P> extends BaseMapper {


	/**
	 * 根据CategoryId查询
	 */
	 T selectByCategoryId(@Param("categoryId") Integer categoryId);

	/**
	 * 根据CategoryId更新
	 */
	 Integer updateByCategoryId(@Param("bean")T t, @Param("categoryId") Integer categoryId);

	/**
	 * 根据CategoryId删除
	 */
	 Integer deleteByCategoryId(@Param("categoryId") Integer categoryId);


	void updateCategoryName(String categoryName, Integer categoryId);
}